package com.toe.commodity.webapi.mapper;

import com.toe.pojo.entity.commodity.CommodityClassesType;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.toe.pojo.vo.commodity.CommodityClassTypeVO;
import org.springframework.stereotype.Repository;


import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author 陶涛
 * @since 2022-07-19
 */
@Repository
public interface CommodityClassesTypeMapper extends BaseMapper<CommodityClassesType> {

    //查询所有的在售课程类型信息
    List<CommodityClassTypeVO> getCommodityClassType();

    //添加新的在售课程类型
    Integer addNewCommodityClassType(String classTypeName);

    //删除在售的课程类型
    Integer deletedCommodityClassType(Long id);

    //修改在售课程的类型名称
    Integer updateCommodityClassTypeName(CommodityClassesType commodityClassesType);
}
